/*
package org.itboys.core.service.mongo.web;

import org.itboys.core.entity.mongo.SundayFeedback;
import org.itboys.mongodb.core.MongoDataSource;
import org.itboys.mongodb.service.BaseMongoService;
import org.itboys.param.PageResult;
import org.itboys.param.ParamUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;

*/
/**
 * Auther: 罗尧坤
 * Date: 2018/8/1
 * Description:
 *//*


@Service
public class SundayFeedbackService extends BaseMongoService<SundayFeedback> {
    @Autowired
    private SundayFeedbackAnsService feedbackAnsService;

    @Resource(name = "mobileDs")
    private MongoDataSource mobileDataSource;
    @Override
    protected MongoDataSource getMongoDataSource() {
        return mobileDataSource;
    }
    @Override
    protected Class<SundayFeedback> getEntityClass() {
        return SundayFeedback.class;
    }

    */
/**
     * 分页获取用户反馈信息
     * @param request
     * @return
     *//*

    public PageResult<SundayFeedback> select(HttpServletRequest request){
        Map<String,Object> param = ParamUtil.packageMongoExactParam(request);
        param.put("isDeleted", 0);
        PageResult<SundayFeedback> pageResult=super.pageQuery(request,param);
        return pageResult;
    }

    */
/**
     * 设置是否已阅
     * @param id
     * @param status
     *//*

    public void setStatus(Long id,Integer status){
        super.update(id,"status",status);
    }

    */
/**
     * 设置是否回答
     * @param id
     * @param isAnswerd
     *//*

    public void setIsAnswerd(Long id,Integer isAnswerd){
        super.update(id,"isAnswerd",isAnswerd);
        super.update(id,"status", 1);
    }
}
*/
